package com.woniuxy.dto;

/**
 * @ClassName JSONResultCode
 * @Description 返回值的常量枚举
 * @Author 李磊
 * @Version 1.0
 **/
public enum DtoJSONResultCode {

    SUCCESS("0000","操作成功"),
    LOGINERROR("1001","登录失败"),
    NONERROR("1002","未知异常"),
    TOKENERROR("1003","令牌错误"),
    FILEUPLOADERROR("1004","文件上传失败"),

    SELECTBUGLISTSUCCESS("201","查询成功"),

    AUTHORITYERROR("1400","权限不足"),
    SELECTROLESUCCESS("202","查询成功");


    String code;

    String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    DtoJSONResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
